<template>
    <div>
      <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
        <el-breadcrumb-item v-for="(item,index) in breadcrumb" :key="index">{{item}}</el-breadcrumb-item>
        <el-button type="danger" round size="mini" class="reload" @click="$router.go(0)">刷新</el-button>
      </el-breadcrumb>
    </div>
</template>
<script>
export default {
  name: 'sBreadcrumb',
  data () {
    return {
      breadcrumb: JSON.parse(window.sessionStorage.getItem('breadcrumb')) // 头部
    }
  },
  props: {},
  methods: {}
}
</script>
